import request from '@/utils/request'

// 查询物品库存列表
export function listItemStock(query) {
  return request({
    url: `/itemStock/list/${query.pageNum}/${query.pageSize}/${query.totalRow}`,
    method: 'post',
    data: query
  })
}

// 查询物品库存详细
export function getItemStock(id) {
  return request({
    url: '/itemStock/' + id,
    method: 'get'
  })
}

// 新增物品库存
export function addItemStock(data) {
  return request({
    url: '/itemStock/save',
    method: 'post',
    data: data
  })
}

// 修改物品库存
export function updateItemStock(data) {
  return request({
    url: '/itemStock/update',
    method: 'put',
    data: data
  })
}

// 删除物品库存
export function delItemStock(id) {
  return request({
    url: '/itemStock/remove/' + id,
    method: 'delete'
  })
}
